<?php

namespace app\wechat\controller;

use EasyWeChat\Factory;
use think\Controller;
use think\Exception;

class Main extends Controller
{

    public function index()
    {

        $app = app('wechat.official_account');

        $app->server->push(function($message){
            return 'hello 为';
        });
        $app->server->serve()->send();
    }

}
